package com.atguigu.boot.config;

import com.atguigu.hello.service.HelloService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : leimingchao
 * @date Date : 2021年11月22日 23:15
 */
@Configuration
public class MyConfig {


    /**
     * ResourceUtils.getFile("classpath:application.properties")
     * @return
     */

    @Bean
    public HelloService helloService() {
        HelloService helloService = new HelloService();
        return helloService;
    }
}
